/**
 * Created by zhaott on 2017/11/14.
 */
/** todo:管道流
 * readStream.pipe(writeStream)
 **/
var fs=require('fs');
var readStream=fs.createReadStream('pipeStream.js');
var writeStream=fs.createWriteStream('out.txt');
readStream.pipe(writeStream);
console.log('操作完成！');